package com.zhangNO;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ZhangNOImp implements ZhangNO {
	private int no = 1;
	private SimpleDateFormat sdf = new SimpleDateFormat("yyMMddhhmmss");
	/* (non-Javadoc)
	 * @see com.zhangNO.ZhangNO#getNewNo()
	 */
	public String getNewNo(){
		no %= 10000;
		return sdf.format(new Date())+ String.format("%04d", ++no);
	}
}
